{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
        <!-- nav --><!-- nav -->
            
	<div class="main-title">
		<h2>权限管理</h2>
	</div>

	<div class="cf">
		<a class="btn" href="{eval echo site_url('system/permission_add')}">新增用户组</a>
		<!-- 高级搜索 -->
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="name" class="search-input" value="" placeholder="请输入分组名称">
				<a class="sch-btn" href="javascript:;" id="search" url=""><i class="btn-search"></i></a>
			</div>
		</div>
	</div>
	
	<div class="data-table table-striped">
		<table>
			<thead>
				<tr>
					<th>ID</th>
					<th>排序</th>
					<th>用户组</th>
					<th>描述</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<!--{loop $list $val}-->
				<tr>
					<td>{$val['id']}</td>
					<td>{$val['sort']}</td>
					<td><a href="{eval echo site_url('system/permission_edit')}?id={$val['id']}">{$val['group_name']}</a></td>
					<td>{$val['description']}</td>
                                        <td style="color:red;">{eval echo $val['status']?'启用':'禁用'}</td>
					<td>
						
						<a title="访问授权" href="{eval echo site_url('system/permission_access')}?id={$val['id']}">访问授权</a>
						<a title="编辑" href="{eval echo site_url('system/permission_edit')}?id={$val['id']}">编辑</a>
						<a title="{eval echo $val['status']?'启用':'禁用'}" href="{eval echo site_url('system/permission_setstatus').'?ids='.$val['id'].'&status='.abs(1-$val['status']).'&name='.$val['group_name']}" class="ajax-get">{eval echo $val['status']?'禁用':'启用'}</a>
						<a class="confirm ajax-get" title="删除" href="{eval echo site_url('system/permission_del')}?id={$val['id']}&name={$val['group_name']}">删除</a>
					</td>
				</tr>
				<!--{/loop}-->
			</tbody>
		</table>
		<!-- 分页 -->
	    <div class="page">
	        <div>
			{$showpage}
			<span class="rows">共 {$Total} 条记录</span>
			</div>
		</div>
		
	</div>

<!--F-->{load footer}